package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.qc.QcCommonRemarkDto;
import com.ysd.lis.request.qc.QcCommonRemarkParam;
import com.ysd.lis.service.qc.QcCommonRemarkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2024-01-30
 */
@Api(tags = "质控常见备注")
@RestController
@RequestMapping("/api/qc/qcCommonRemark")
public class QcCommonRemarkController extends BaseController {
    @Autowired
    QcCommonRemarkService qcCommonRemarkService;

    @ApiOperation("查询")
    @GetMapping("/findCommonRemarkList")
    public Result findCommonRemarkList(QcCommonRemarkParam param){
        return qcCommonRemarkService.findCommonRemarkList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateCommonRemark")
    public Result saveOrUpdateCommonRemark(@RequestBody QcCommonRemarkDto dto) {
        return qcCommonRemarkService.saveOrUpdateCommonRemark(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteCommonRemarkList")
    public Result batchDeleteCommonRemarkList(@RequestBody QcCommonRemarkDto dto){
        return  qcCommonRemarkService.batchDeleteCommonRemarkList(dto);
    }
}
